﻿using AutoMapper;
using God.ShoppingWebApi.DTO;
using God.ShoppingWebApi.Entities;

namespace God.ShoppingWebApi
{
    public class ShoppingWebApiApplicationAutoMapperProfile : Profile
    {
        public ShoppingWebApiApplicationAutoMapperProfile()
        {
            /* You can configure your AutoMapper mapping configuration here.
             * Alternatively, you can split your mapping configurations
             * into multiple profile classes for a better organization. */

            CreateMap<CommodInfo, CommDTO>();
            CreateMap<CommDTO, CommodInfo>();
            CreateMap<CommodType, CommodTypeDTO>();
            CreateMap<ShoppingCare, ShoppingCartDto>();
            CreateMap<Permission, PermissionDTO>();
            CreateMap<UserLogin, UserDTO>();
            CreateMap<Roles, RoleDTO>();
            CreateMap<UserRoles, RoleUsersDTO>();
        }
    }
}
